package it.com;

public class ArithmeticOperationDemo {
    public static void main(String[] args) {
        //关系运算符
        int a = 10, b = 5, c = 10;
        boolean b1 = a > b;
        boolean b2 = a == c;
        boolean b3 = a != c;
        boolean b4 = a >= c;
        System.out.println("b1 = " + b1);
        System.out.println("b2 = " + b2);
        System.out.println("b3 = " + b3);
        System.out.println("b4 = " + b4);

        System.out.println(a % 2 == 0);
        System.out.println(a++ > 5);//此时a=11，这里的a是被使用了，++在后相当于(10>5)
        System.out.println(a++ > 5);//此时a=12
        System.out.println(a);


    }
}
